import request from '@/untils/request'

//排班列表
export const tableDatasService = params =>
  request.post('api/pub/ai/driver_page_list', {
    line_id: params.line_id || '361000_to_363000',
    oc_code: params.oc_code || [],
    page_type: params.page_type || 0,
    pos: params.pos || 0,
    limit: params.limit || 500,
  })

//订单池实时数据
export const orderDataService = params =>
  request.post('api/pub/ai/order_view', {
    day_at: params.day_at || '2024-06-21',
    line_id: params.line_id || '361000_to_363000',
  })
//当前运力实时数据
export const transportDataService = params =>
  request.post('api/pub/ai/driver_view', {
    day_at: params.day_at || '2024-06-21',
    line_id: params.line_id || '361000_to_363000',
  })
//实时总览数据
export const totalDataService = params =>
  request.post('api/pub/ai/dispatched_view', {
    day_at: params.day_at || '2024-06-21',
    line_id: params.line_id || '361000_to_363000',
  })
